package com.slz3.business.module.goodsManagement.gooBaseGoodsSpecificationValue.steward;

import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.response.ResInfo;
import com.slz3.business.module.goodsManagement.gooBaseGoodsSpecificationValue.domain.GooBaseGoodsSpecificationValue;
import com.slz3.business.module.goodsManagement.gooBaseGoodsSpecificationValue.domain.GooBaseGoodsSpecificationValueCondition;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

@Component
public class GooBaseGoodsSpecificationValueResAtomic {

    public Mono<ServerResponse> add_$GooBaseGoodsSpecificationValueUpdateLock(ServerRequest req, GooBaseGoodsSpecificationValue gooBaseGoodsSpecificationValue) {
        return GooBaseGoodsSpecificationValueResSafeValid.add(req, gooBaseGoodsSpecificationValue) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                GooBaseGoodsSpecificationValueResExecutor.add(req, gooBaseGoodsSpecificationValue);
    }

    public Mono<ServerResponse> delete_$GooBaseGoodsSpecificationValueUpdateLock(ServerRequest req, GooBaseGoodsSpecificationValueCondition gooBaseGoodsSpecificationValueCondition) {
        return GooBaseGoodsSpecificationValueResSafeValid.delete(req, gooBaseGoodsSpecificationValueCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                GooBaseGoodsSpecificationValueResExecutor.delete(req);
    }

    public Mono<ServerResponse> modify_$GooBaseGoodsSpecificationValueUpdateLock(ServerRequest req, GooBaseGoodsSpecificationValue gooBaseGoodsSpecificationValue) {
        return GooBaseGoodsSpecificationValueResSafeValid.modify(req, gooBaseGoodsSpecificationValue) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                GooBaseGoodsSpecificationValueResExecutor.modify(req, gooBaseGoodsSpecificationValue);
    }

    public Mono<ServerResponse> info_$GooBaseGoodsSpecificationValueUpdateLock(ServerRequest req) {
        return GooBaseGoodsSpecificationValueResSafeValid.info(req) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                GooBaseGoodsSpecificationValueResExecutor.info(req);
    }

    public Mono<ServerResponse> auditSubmit_$GooBaseGoodsSpecificationValueUpdateLock(ServerRequest req, GooBaseGoodsSpecificationValueCondition gooBaseGoodsSpecificationValueCondition) {
        return GooBaseGoodsSpecificationValueResSafeValid.auditSubmit(req, gooBaseGoodsSpecificationValueCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                GooBaseGoodsSpecificationValueResExecutor.auditSubmit(req);
    }

    public Mono<ServerResponse> audit_$GooBaseGoodsSpecificationValueUpdateLock(ServerRequest req, GooBaseGoodsSpecificationValueCondition gooBaseGoodsSpecificationValueCondition) {
        return GooBaseGoodsSpecificationValueResSafeValid.audit(req, gooBaseGoodsSpecificationValueCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                GooBaseGoodsSpecificationValueResExecutor.audit(req);
    }

    public Mono<ServerResponse> auditReject_$GooBaseGoodsSpecificationValueUpdateLock(ServerRequest req, GooBaseGoodsSpecificationValueCondition gooBaseGoodsSpecificationValueCondition) {
        return GooBaseGoodsSpecificationValueResSafeValid.auditReject(req, gooBaseGoodsSpecificationValueCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                GooBaseGoodsSpecificationValueResExecutor.auditReject(req);
    }


    public Mono<ServerResponse> usingEnable_$GooBaseGoodsSpecificationValueUpdateLock(ServerRequest req, GooBaseGoodsSpecificationValueCondition gooBaseGoodsSpecificationValueCondition) {
        return GooBaseGoodsSpecificationValueResSafeValid.usingEnable(req, gooBaseGoodsSpecificationValueCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                GooBaseGoodsSpecificationValueResExecutor.usingEnable(req);
    }

    public Mono<ServerResponse> usingDisable_$GooBaseGoodsSpecificationValueUpdateLock(ServerRequest req, GooBaseGoodsSpecificationValueCondition gooBaseGoodsSpecificationValueCondition) {
        return GooBaseGoodsSpecificationValueResSafeValid.usingDisable(req, gooBaseGoodsSpecificationValueCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                GooBaseGoodsSpecificationValueResExecutor.usingDisable(req);
    }
}
